<div class="menu_list cl">
  <?php foreach($dishes as $catid => $mycats): ?>
  <div class="menu">
    <h1>
      <?php $cat_name = isset($cats[$catid]) ? $cats[$catid] : '默认分类'; echo h($cat_name); ?>
    </h1>
    <ul class="grid cl">
      <?php
            $t=1;
            foreach($mycats as $dish):
            $t++;
        ?>
      <li class="dish-<?=(($t%4 <2) ? 1 : 2); ?>" onClick="addCart(<?=$dish['dish_id'];?>)">
        <h3 class="rem-icon">
          <?=h($dish['name']);?>
        </h3>
        <span>￥
        <?=$dish['price'];?>
        </span> </li>
      <?php endforeach; ?>
    </ul>
  </div>
  <?php endforeach; ?>
</div>
